package com.vhall.component.entity.tag;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 页面频道表
 *
 * @TableName page_channel
 */
@TableName(value = "page_channel")
@Data
public class PageChannelEntity implements Serializable {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 父ID
     */
    @TableField(value = "pid")
    private Integer pid;

    /**
     * 频道名称
     */
    @TableField(value = "channel_name")
    private String channelName;

    /**
     * 频道标识
     */
    @TableField(value = "eng_name")
    private String engName;

    /**
     * 链接
     */
    @TableField(value = "url")
    private String url;

    /**
     * 频道说明
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 状态:1-启用，0-禁用
     */
    @TableField(value = "channel_status")
    private Integer channelStatus;

    /**
     * 状态:1-显示，0-不显示
     */
    @TableField(value = "channel_show")
    private Integer channelShow;

    /**
     * 排序
     */
    @TableField(value = "sort")
    private Integer sort;

    /**
     * 是否删除>0|否,1|是
     */
    @TableField(value = "is_delete")
    private Integer isDelete;

    /**
     * 修改时间
     */
    @TableField(value = "updated_at")
    private LocalDateTime updatedAt;

    /**
     * 创建时间
     */
    @TableField(value = "created_at")
    private LocalDateTime createdAt;

    /**
     * 删除时间
     */
    @TableField(value = "deleted_at")
    private LocalDateTime deletedAt;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 限时免费，可输入金额
     */
    @TableField("limited_time_free")
    private Integer limitedTimeFree;


}